SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].ModelosUpdateCommand
(
	@ID numeric(10, 0),
	@MODELO varchar(50),
	@ACTIVO bit,
	@Original_ID numeric(10, 0),
	@Original_MODELO varchar(50),
	@Original_ACTIVO bit
)
AS
	SET NOCOUNT OFF;
UPDATE [MODELOS] SET [ID] = @ID, [MODELO] = @MODELO, [ACTIVO] = @ACTIVO WHERE (([ID] = @Original_ID) AND ([MODELO] = @Original_MODELO) AND ([ACTIVO] = @Original_ACTIVO));
	
SELECT ID, MODELO, ACTIVO FROM MODELOS WHERE (ID = @ID)
GO
